package structure.adapter.objectadapter;


/**
 * 对象适配器 - 适配器
 */
public class Adaptor implements ITarget {
    /**
     * 对象适配器 - 适配者
     */
    private Adaptee adaptee;

    public Adaptor(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    @Override
    public void fa(String name) {
        System.out.println("name:" + name);
        adaptee.fa();
    }

    @Override
    public void fb() {
        adaptee.fb();
    }

    @Override
    public void fc() {
        adaptee.fc();
    }


}
